package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName mock_api
 */
@TableName(value ="mock_api")
@Data
public class MockApi extends BaseEntity {
    /**
     * 
     */
    @TableId(value = "api_id", type = IdType.AUTO)
    private Integer apiId;

    /**
     * 
     */
    @TableField(value = "server_id")
    private Integer serverId;

    /**
     * 描述
     */
    @TableField(value = "desc")
    private String desc;

    /**
     * 请求地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 请求方式
     */
    @TableField(value = "method")
    private String method;

    /**
     * 状态码
     */
    @TableField(value = "response_code")
    private Integer responseCode;

    /**
     * 响应头
     */
    @TableField(value = "response_headers")
    private String responseHeaders;

    /**
     * 响应body
     */
    @TableField(value = "response_body")
    private String responseBody;

    /**
     * 响应时延ms
     */
    @TableField(value = "response_delay")
    private Integer responseDelay;

    /**
     * 0启用1禁用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 
     */
    @TableField(value = "created_time")
    private Date createdTime;

    /**
     * 0是1否 是否解析headers依赖
     */
    @TableField(value = "response_headers_enable_rely")
    private Integer responseHeadersEnableRely;

    /**
     * 0是1否 是否解析body依赖
     */
    @TableField(value = "response_body_enable_rely")
    private Integer responseBodyEnableRely;

    /**
     * 创建人id
     */
    @TableField(value = "creator_id")
    private Integer creatorId;

    /**
     * 创建人名称
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 0文本1json2xml3html
     */
    @TableField(value = "response_body_type")
    private Integer responseBodyType;
}